package com.zjb.demo.system.domain;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

/**
 * @author 庄佳彬
 * @since 2023/12/28 23:42
 */
@Table(value = "sys_user_role")
public class SysUserRole {
    @Id(keyType = KeyType.None)
    @Column(value = "user_id")
    private Long userId;
    @Id(keyType = KeyType.None)
    @Column(value = "role_id")
    private Long roleId;

    public SysUserRole() {
    }

    public SysUserRole(Long userId, Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
